import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: () =>
    import(/* webpackChunkName: "index" */ "../views/Home.vue"),
  },
  // {
  //   path: "/table",
  //   name: "table",
  //   component: () =>
  //     import(/* webpackChunkName: "table" */ "../views/Table.vue"),
  // },
  // {
  //   path: "/table2",
  //   // name: "table2",
  //   component: () =>
  //     import( "../views/Table2.vue"),
  // },
  {
    path: "/table",
    component: () =>
      import( "../views/Table.vue"),
  },
];

const router = createRouter({
  // history: createWebHistory(process.env.BASE_URL),
  history: createWebHistory(),
  routes,
});

export default router;
